import Vue from "vue";
import App from "./App.vue";
import "./registerServiceWorker";
import router from "./router";
import store from "./store";
import api from "./api/index";
import xss from "xss";
import ElementUI from "element-ui";
// import locale from "element-ui/lib/locale/lang/zh-CN";
import "element-ui/lib/theme-chalk/index.css";
import "./utils/dialog";
Vue.prototype.$api = api;
Vue.use(ElementUI);
// Vue.use(ElementUI, { locale });

import componentsInstall from './install.js'
Vue.use(componentsInstall)

Vue.config.productionTip = false;
import VueLazyload from "vue-lazyload";
Vue.use(VueLazyload);
Vue.prototype.$xss = xss;

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount("#app");
